<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>验收归档资料一览表</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: "Microsoft YaHei", sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 20px;
        }
        .page-title {
            font-size: 18px;
            font-weight: bold;
        }
        .btn {
            padding: 6px 12px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            background-color: #e0e0e0;
            color: #333;
        }
        .btn-primary {
            background-color: #1890ff;
            color: white;
        }
        .btn-danger {
            background-color: #ff4d4f;
            color: white;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-label {
            display: block;
            margin-bottom: 5px;
            font-size: 14px;
        }
        .form-control {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        .table th, .table td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }
        .table th {
            background-color: #f5f5f5;
            font-weight: normal;
        }
        .text-center {
            text-align: center;
            margin: 10px 0 20px;
            font-weight: normal;
        }
        .required {
            color: red;
            font-weight: bold;
        }
        .search-input-container {
            position: relative;
            display: flex;
        }
        .clear-btn {
            position: absolute;
            right: 40px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #ccc;
        }
        .btn-search {
            margin-left: -1px;
        }
        .row {
            display: flex;
            gap: 15px;
        }
        .col-6 {
            flex: 0 0 calc(50% - 7.5px);
        }
        .materials-table {
            margin: 20px 0;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            padding: 15px;
        }
        .add-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            margin-top: 10px;
            cursor: pointer;
            background-color: #f9f9f9;
        }
        .upload-area {
            border: 1px dashed #d9d9d9;
            border-radius: 4px;
            padding: 15px;
            margin-top: 5px;
        }
        .upload-placeholder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
            border: 1px dashed #d9d9d9;
            border-radius: 4px;
            background-color: #fafafa;
            cursor: pointer;
            font-size: 24px;
        }
        .footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #e0e0e0;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="page-title">新增归档资料</div>
        </div>

        <h3 class="text-center">验收归档资料一览表（系统集成类）</h3>
        
        <div class="form-group">
            <label class="form-label">项目名称: <span class="required">*</span></label>
            <div class="search-input-container">
                <input type="text" class="form-control">
                <span class="clear-btn">×</span>
                <button class="btn btn-search">🔍</button>
            </div>
        </div>
        
        <div class="form-group">
            <label class="form-label">项目编号:</label>
            <input type="text" class="form-control">
        </div>
        
        <div class="form-group row">
            <div class="col-6">
                <label class="form-label">创建人:</label>
                <input type="text" class="form-control">
            </div>
            <div class="col-6">
                <label class="form-label">创建日期:</label>
                <input type="text" class="form-control">
            </div>
        </div>
        
        <div class="materials-table">
            <table class="table">
                <thead>
                    <tr>
                        <th width="10%">序号</th>
                        <th width="45%">材料名称</th>
                        <th width="45%">资料上传</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>立项申请与批复资料</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>招标文件</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>中标的投标文件（正本）</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td>中标通知书</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>5</td>
                        <td><span class="required">*</span>合同文件</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>6</td>
                        <td><span class="required">*</span>签收单</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>7</td>
                        <td>项目验收申请表</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>8</td>
                        <td>项目验收初验表</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>9</td>
                        <td><span class="required">*</span>项目终验检查表</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>10</td>
                        <td><span class="required">*</span>项目验收报告</td>
                        <td></td>
                    </tr>
                </tbody>
            </table>
            <div class="add-btn">+</div>
        </div>
        
        <div class="form-group">
            <label class="form-label">备注:</label>
            <textarea class="form-control" rows="3"></textarea>
        </div>
        
        <div class="form-group">
            <label class="form-label">附件</label>
            <div class="upload-area">
                <div class="upload-placeholder">+</div>
            </div>
        </div>

        <div class="footer">
            <button class="btn" id="cancelBtn">取消</button>
            <button class="btn">保存</button>
            <button class="btn btn-primary">验收申请</button>
        </div>
    </div>

    <script>
        // 返回上一页
        document.getElementById('cancelBtn').addEventListener('click', function() {
            window.location.href = '../project-document.html';
        });

        // 清除搜索框
        document.querySelector('.clear-btn').addEventListener('click', function() {
            document.querySelector('.search-input-container input').value = '';
        });

        // 添加新行按钮
        document.querySelector('.add-btn').addEventListener('click', function() {
            const tbody = document.querySelector('.materials-table tbody');
            const rowCount = tbody.children.length;
            const newRow = document.createElement('tr');
            
            newRow.innerHTML = `
                <td>${rowCount + 1}</td>
                <td><input type="text" class="form-control" placeholder="请输入材料名称"></td>
                <td></td>
            `;
            
            tbody.appendChild(newRow);
        });
    </script>
</body>
</html>
